package cn.jji8.QSGUI.Gui.Goods;

import cn.jji8.QSGUI.quick.logger.Logger;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.ItemStack;
import org.maxgamer.quickshop.shop.Shop;

public class Display implements Goods{
    Shop shop;
    @Override
    public void setGoods(Shop shop, YamlConfiguration yml, String key) {
        this.shop = shop;
    }

    /**
     * 获取要在箱子中显示的物品
     */
    @Override
    public ItemStack getItemStack(Player player) {
        return shop.getItem();
    }

    /**
     * 玩家点击此物品时调用的方法
     */
    @Override
    public void click(InventoryClickEvent a) {
        Logger.putdebug("我被点击了");
    }
}
